package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.DataAchievementDao;
import io.renren.entity.DataAchievementEntity;
import io.renren.service.DataAchievementService;



@Service("dataAchievementService")
public class DataAchievementServiceImpl implements DataAchievementService {
	@Autowired
	private DataAchievementDao dataAchievementDao;
	
	@Override
	public DataAchievementEntity queryObject(String id){
		return dataAchievementDao.queryObject(id);
	}
	
	@Override
	public List<DataAchievementEntity> queryList(Map<String, Object> map){
		return dataAchievementDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dataAchievementDao.queryTotal(map);
	}
	
	@Override
	public void save(DataAchievementEntity dataAchievement){
		dataAchievementDao.save(dataAchievement);
	}
	
	@Override
	public void update(DataAchievementEntity dataAchievement){
		dataAchievementDao.update(dataAchievement);
	}
	
	@Override
	public void delete(String id){
		dataAchievementDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		dataAchievementDao.deleteBatch(ids);
	}
	
}
